package com.company;

public class Car extends Vehicle{
    private int loader;


    public Car(String brand, String color,int loader) {
        super(brand, color);
        this.loader = loader;
    }

    public int getLoader() {
        return loader;
    }

    private void setLoader(int loader) {
        this.loader = loader;
    }

    @Override
    public void run() {
        System.out.println(getBrand() + "正在以" + getSpeed() + "Km/h的速度行驶");
    }
}
